package com.nq.common;

/**
 * 签到类型
 */
public enum SignInTypeEnum {
    /**
     * 普通签到
     */
    ORDINARY(1),
    /**
     * 连续签到
     */
    CONTINUOUS(2),
    /**
     * 累加签到
     */
    ACCUMULATE(3);

    private Integer type;

    SignInTypeEnum(Integer type) {
        this.type = type;
    }

    public Integer getType() {
        return this.type;
    }

    public static SignInTypeEnum getNameFromValue(int value) {
        for (SignInTypeEnum signInType : SignInTypeEnum.values()) {
            if (signInType.getType() == value) {
                return signInType;
            }
        }
        return null; // 如果未找到匹配的值，返回 null
    }
}
